<template>
  <div id="topSearch">
    <div class="search-box">
      <el-form
        ref="ruleForm"
        :inline="true"
        :model="formInline"
        :rules="rules"
        class="demo-form-inline"
      >
        <el-form-item label="大鹏号" prop="dpAccount">
          <el-input
            placeholder="请输入大鹏号查找"
            v-model="formInline.dpAccount"
          ></el-input>
        </el-form-item>
        <el-form-item class="s-btn">
          <el-button type="success" icon="el-icon-search" @click="search">
            查询
          </el-button>
        </el-form-item>
      </el-form>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    formInline: {
      type: Object,
      default: function() {
        return {
          dpAccount: ''
        }
      }
    }
  },
  methods: {
    search() {
      this.$emit('searchList')
    }
  }
}
</script>

<style lang="less" scoped>
#topSearch {
}
</style>
